class <%= migration_name %> < ActiveRecord::Migration
  def self.up
    create_table :<%= singular_name %>_instances do |t|
      t.column :<%= singular_name %>_id, :integer
<% for attribute in attributes -%>
      t.column :<%= attribute.name %>, :<%= attribute.type %>
<% end -%>
    end
  end

  def self.down
    drop_table :<%= singular_name %>_instances
  end
end
